#include "Client.hpp"
#include <iostream>

int main()
{
    // Client c;                                         客户端    客服端退 相当于写端退
    // std::cout << "Client" << std::endl;

    Client client;
    client.OpenPipeForWrite();

    std::string message;
    while(1)
    {
        std::cout<<"Please Enter# ";
        std::getline(std::cin,message);

        client.SendPipe(message);
        
    }

    client.ClosePipe();
    return 0;
}